package com.ztom.core.io

import java.io.InputStream
import java.nio.file.Files
import java.nio.file.Paths

/**
 * @author ZhangTao
 */
class FileSystemResource(private val filePath: String) : Resource {

    override fun getInputStream(): InputStream {
        return Files.newInputStream(Paths.get(filePath))
    }
}